﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Google.GData.Calendar.EventEntry>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    ארועים - נלך
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="left">
 
  <%Html.RenderAction("AdvertShowThree", "Advert", new { id = 7 });%>
  
</div>
<div id="main">
    <h2><% Html.RenderPartial("EventControl"); %></h2>
    <% foreach (var item in Model)
       { %>
    <fieldset class="event1">
        <legend>
            <%= Html.Encode(item.Title.Text) %></legend>
        <%
           if(item.WebContentLink != null && item.WebContentLink.HRef != null){
               Response.Write("<img class='floatright' src='" + item.WebContentLink.HRef + "' width=100 height=100 />");
           }
        %>
     <p>
     
     <label class="bold">תחילת הארוע:</label>
     <%= Html.Encode(String.Format("{0:g}", item.Times[0].StartTime)) %> <br />
      <%=nelech.Views.Shared.Code.Utils.GetHebrewJewishDateString(item.Times[0].StartTime, true)%>
     </p>  
       <p>
     
     <label class="bold">סוף הארוע:</label>
     <%= Html.Encode(String.Format("{0:g}", item.Times[0].EndTime)) %><br />
     <%=nelech.Views.Shared.Code.Utils.GetHebrewJewishDateString(item.Times[0].EndTime, true)%>
     </p> 
        <p>
            <label class="bold">
                תקציר:</label>
            <%= Html.Encode(String.Format("{0:g}", item.Content.Content)) %></p>
        <%
            var time = item.Times.First();
        %>
       
        
          <%= Html.ActionLink("לפרטים", "ShowDetails", "Event", new { id = item.Uid.Value }, null)%>
        </p>
    </fieldset>
    <% } %>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="publishTop" runat="server">
</asp:Content>
